package com.common.method;

import java.util.HashMap;

import android.os.Environment;

import com.matang.R;

public class CommonData {
	public static class Config {
		public static final boolean DEVELOPER_MODE = false;
	}

	/**
	 * 成功
	 */
	public static final int H_FLAG_200 = 1;
	/**
	 * 失败
	 */
	public static final int H_FLAG_ERROR = 2;
	
	/**
	 * 成功
	 */
	public static final int H_FLAG_SUCCESS = 1;

	
	public static final int WELCOME_IMG_APPEAR_PERIOD=2000*1;
	
	
	
	
	/**
	 * 拍照照片存放路径
	 */
	public static final String PHOTO_PATH = Environment
			.getExternalStorageDirectory() + "/iyr_app/img/";
	// 拍照头像后的名称
	public static final String PHOTO_TEMP_NAME = "temp_head.png";
	// 裁剪后的名称
	public static final String PHOTO_TEMP_CROP_NAME = "temp_head_crop.png";
	
	
	public static String DEFAULT_P="104.06,30.86";
	//默认的地图点
	//public static  GeoPoint DEFAULT_GEOPOINT = new GeoPoint((int)(30.63355483*1e6),(int)(104.06653404*1e6));
	//聊天接口的默认获取数据条数
	public static final String DEAULT_PAGESIZE="5";
	public static final String DEFAULT_PAGE_SIZE = "10";
	
	/**
	 * 礼物TYPE对应的礼物图片ID
	 */
	public static  HashMap<String ,Integer> giftMap =new HashMap<String, Integer>();
	/**
	 * 礼物描述
	 */
	public static  HashMap<String ,String> giftDescMap =new HashMap<String, String>();
	/**
	 * 礼物TYPE对应的礼物价格ID
	 */
	public static  HashMap<String ,Integer> giftPriceMap =new HashMap<String, Integer>();
	public static HashMap<String ,Integer> getGiftMap(){
		if(giftMap.size()==0){
			giftMap.put("0", R.drawable.g_flower);
			giftMap.put("1", R.drawable.g_dia);
			giftMap.put("2", R.drawable.g_car);
			giftMap.put("3", R.drawable.g_house);
			giftMap.put("4", R.drawable.g_ship);
			giftMap.put("5", R.drawable.g_plane);
		}
		return giftMap;
	}
	public static HashMap<String ,Integer> getGiftPriceMap(){
		if(giftPriceMap.size()==0){
			// giftPriceMap.put("0", 0.01f);
			// giftPriceMap.put("1",0.01f);
			// giftPriceMap.put("2",0.01f);
			// giftPriceMap.put("3", 0.01f);
			// giftPriceMap.put("4",0.01f);
			// giftPriceMap.put("5", 0.01f);
			giftPriceMap.put("0", 1);
			giftPriceMap.put("1",10);
			giftPriceMap.put("2",100);
			giftPriceMap.put("3", 1000);
			giftPriceMap.put("4",5000);
			giftPriceMap.put("5", 10000);
		}
		return giftPriceMap;
	}
	public static HashMap<String ,String> getGiftDescMap(){
		if(giftDescMap.size()==0){
			giftDescMap.put("0", "鲜花");
			giftDescMap.put("1","钻石");
			giftDescMap.put("2","跑车");
			giftDescMap.put("3", "别墅");
			giftDescMap.put("4","游艇");
			giftDescMap.put("5", "私人飞机");
		}
		return giftDescMap;
	}
	
	/**
	 * 
	 * @Description:TODO公用设置map属性，如果是真，则设置为真
	 * @param@param map
	 * @param@param tag
	 * @param@param flag
	 * @return void
	 * @author zhuw
	 * @date 2013-9-22 下午10:18:28
	 */
	public static void pricayMapSet(HashMap<String, Object> map,String tag,boolean flag ){
		if(flag){
			map.put(tag, flag);
		}
	}
	public static String GPS="附近5公里";
	public static long BAR_SHOW_TIME = 10;
}
